Fix bug #18195 with inaccurate results from window-screen-lines.
authorEli Zaretskii <eliz@gnu.org>
Tue, 5 Aug 2014 13:34:06 +0000 (16:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 5 Aug 2014 13:34:06 +0000 (16:34 +0300)
commita0d0e7287e25cc6ef705b8f049705cedd09fac62
tree68243c2bcb70bbd958f3baf3ec9825686f16edd2
parent82044a80f6f79153a084a25bd649b8c965311e9b
Fix bug #18195 with inaccurate results from window-screen-lines.

 lisp/simple.el (default-line-height): A floating-point value of
 line-spacing means a fraction of the default frame font's height,
 not of the font currently used by the 'default' face.  Truncate
 the pixel value, like the display engine does.
 (window-screen-lines): Use window-inside-pixel-edges for
 determining the window height in pixels.
lisp/ChangeLog
lisp/simple.el